package cn.bonoon.controllers.announcement;

import java.util.Date;

import cn.bonoon.kernel.annotations.condition.ConditionField;
import cn.bonoon.kernel.annotations.condition.ConditionOpt;
import cn.bonoon.kernel.query.PageCondition;
import cn.bonoon.kernel.util.Opt;
import cn.bonoon.kernel.web.annotations.condition.ConditionContent;

public class AnnouncementCondition extends PageCondition implements AnnouncementDefine {

	private static final long serialVersionUID = -5047937186280220474L;
	
	@ConditionContent(ordinal = 0)
	private String searchContent;
	
	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.GE)
	@ConditionContent(value = "时间  从", ordinal = 1)
	private Date searchStartAt;
	
	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.LE)
	@ConditionContent(value = "到", ordinal = 2)
	private Date searchEndAt;

	@ConditionContent(ordinal = 10)
	private Integer searchType;
	
	@ConditionContent(ordinal = 11)
	private Boolean searchTopest;

	@ConditionContent(ordinal = 12)
	private Boolean searchDisable;

	public String getSearchContent() {
		return searchContent;
	}

	public void setSearchContent(String searchContent) {
		this.searchContent = searchContent;
	}

	public Integer getSearchType() {
		return searchType;
	}

	public void setSearchType(Integer searchType) {
		this.searchType = searchType;
	}

	public Date getSearchStartAt() {
		return searchStartAt;
	}

	public void setSearchStartAt(Date searchStartAt) {
		this.searchStartAt = searchStartAt;
	}

	public Date getSearchEndAt() {
		return searchEndAt;
	}

	public void setSearchEndAt(Date searchEndAt) {
		this.searchEndAt = searchEndAt;
	}

	public Boolean getSearchTopest() {
		return searchTopest;
	}

	public void setSearchTopest(Boolean searchTopest) {
		this.searchTopest = searchTopest;
	}

	public Boolean getSearchDisable() {
		return searchDisable;
	}

	public void setSearchDisable(Boolean searchDisable) {
		this.searchDisable = searchDisable;
	}
}
